package cn.edu.scau.cmi.zhangjunming.composite.safe;

public class SafeComponent {
	
	SafeComponent parent = null;
	public int type;
	/*
	SafeComponent() {
		
	}*/

    //	(1)业务功能
	 String doSomething() {
		return "I am a Safe Component!!!";
	}
	
	//	(2)获取包含对象的功能
	public SafeComponent getParent() {
		return parent;
	}
	
	public void setParent(SafeComponent parent) {
		this.parent = parent;
	}

}
